/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.maxato.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javax.swing.*;

import nl.maxato.controller.Controller;
import nl.maxato.domain.Athlete;
import nl.maxato.domain.BestTeamPerDiscipline;
import nl.maxato.services.CalculateBestTeam;
import nl.maxato.util.ConfigurationFile;
import nl.maxato.util.ParameterNames;

/**
 *
 * @author Danny
 */
public class BestTeamGUI extends javax.swing.JFrame {

    Controller controller;
    ConfigurationFile cf;
    CalculateBestTeam cbt;
    BestTeamPerDiscipline btpd;

    public BestTeamGUI() {
        controller = new Controller();
        cf = new ConfigurationFile();
        cbt = new CalculateBestTeam();
        makeComponents();
        translateGUI(controller.getLanguague(cf.getLanguage()));
        
        CalculateForSprinters();
        CalculateForMiddleDistanceRunners();
        CalculateForRaceWalkers();
        CalculateForLongDistanceRunners();
        CalculateForJumpers();
        CalculateForThrowers();
        setTotalValues();

    }

    private void CalculateForSprinters() {
        //jLabel_100MeterMan.setText("Danny Gloudemans - 1024");
        ArrayList<Athlete> athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 1, 0);
        btpd = cbt.calculateForFiveEvents(athletesList);
        // jCombobox_100MeterMan.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                jCombobox_100MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), 1);
                jCombobox_100MeterMan.insertItemAt(f, i);
                jCombobox_100MeterMan.setSize(150, 40);
            }
        }
        jCombobox_100MeterMan.setSelectedIndex(0);
        jLabel_100MeterManValue.setText(String.valueOf(btpd.getValue1()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_200MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), 4);
                jCombobox_200MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_200MeterMan.setSelectedIndex(0);
        jLabel_200MeterManValue.setText(String.valueOf(btpd.getValue2()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_400MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), 6);
                jCombobox_400MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_400MeterMan.setSelectedIndex(0);
        jLabel_400MeterManValue.setText(String.valueOf(btpd.getValue3()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID4() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID4()) + " ~ " + btpd.getValue4();
                jCombobox_110MeterHordenMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), 23);
                jCombobox_110MeterHordenMan.insertItemAt(f, i);
            }
        }
        jCombobox_110MeterHordenMan.setSelectedIndex(0);
        jLabel_110MeterHordenManValue.setText(String.valueOf(btpd.getValue4()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID5() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID5()) + " ~ " + btpd.getValue5();
                jCombobox_400MeterHordenMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), 25);
                jCombobox_400MeterHordenMan.insertItemAt(f, i);
            }
        }
        jCombobox_400MeterHordenMan.setSelectedIndex(0);
        jLabel_400MeterHordenManValue.setText(String.valueOf(btpd.getValue5()));
        
        btpd = new BestTeamPerDiscipline(); 
        athletesList = new ArrayList<Athlete>();
        athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 1, ParameterNames.sexFemale);
        btpd = cbt.calculateForFiveEvents(athletesList);
        // jCombobox_100MeterWomen.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                jCombobox_100MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId100Metres);
                jCombobox_100MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_100MeterWomen.setSelectedIndex(0);
        jLabel_100MeterWomenValue.setText(String.valueOf(btpd.getValue1()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_200MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId200Metres);
                jCombobox_200MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_200MeterWomen.setSelectedIndex(0);
        jLabel_200MeterWomenValue.setText(String.valueOf(btpd.getValue2()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_400MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId400Metres);
                jCombobox_400MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_400MeterWomen.setSelectedIndex(0);
        jLabel_400MeterWomenValue.setText(String.valueOf(btpd.getValue3()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID4() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID4()) + " ~ " + btpd.getValue4();
                jCombobox_100MeterHordenWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId110Hurdles);
                jCombobox_100MeterHordenWomen.insertItemAt(f, i);
            }
        }
        jCombobox_100MeterHordenWomen.setSelectedIndex(0);
        jLabel_100MeterHordenWomenValue.setText(String.valueOf(btpd.getValue4()));
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID5() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID5()) + " ~ " + btpd.getValue5();
                jCombobox_400MeterHordenWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId400Hurdles);
                jCombobox_400MeterHordenWomen.insertItemAt(f, i);
            }
        }
        jCombobox_400MeterHordenWomen.setSelectedIndex(0);
        jLabel_400MeterHordenWomenValue.setText(String.valueOf(btpd.getValue5()));
    }

    private void CalculateForMiddleDistanceRunners() {
        ArrayList<Athlete> athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdMiddleDistanceRunners, ParameterNames.sexMale);
        btpd = cbt.calculateForThreeEvents(athletesList);
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                jCombobox_800MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId800Metres);
                jCombobox_800MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_800MeterMan.setSelectedIndex(0);
        jLabel_800MeterManValue.setText(String.valueOf(btpd.getValue1()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_1500MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId1500Metres);
                jCombobox_1500MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_1500MeterMan.setSelectedIndex(0);
        jLabel_1500MeterManValue.setText(String.valueOf(btpd.getValue2()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_3000MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId3000Steeplechase);
                jCombobox_3000MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_3000MeterMan.setSelectedIndex(0);
        jLabel_3000MeterManValue.setText(String.valueOf(btpd.getValue3()));

        
        btpd = new BestTeamPerDiscipline();
        athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdMiddleDistanceRunners, ParameterNames.sexFemale);
        btpd = cbt.calculateForThreeEvents(athletesList);
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                jCombobox_800MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId800Metres);
                jCombobox_800MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_800MeterWomen.setSelectedIndex(0);
        jLabel_800MeterWomenValue.setText(String.valueOf(btpd.getValue1()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_1500MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId1500Metres);
                jCombobox_1500MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_1500MeterWomen.setSelectedIndex(0);
        jLabel_1500MeterWomenValue.setText(String.valueOf(btpd.getValue2()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_3000MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId3000Steeplechase);
                jCombobox_3000MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_3000MeterWomen.setSelectedIndex(0);
        jLabel_3000MeterWomenValue.setText(String.valueOf(btpd.getValue3()));
    }

    private void CalculateForRaceWalkers() {
        btpd = cbt.calculateForThreeEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 4, 0));
        jLabel_10KMMan.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_10KMManValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_20KMMan.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_20KMManValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_50KMMan.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_50KMManValue.setText(String.valueOf(btpd.getValue3()));
        btpd = new BestTeamPerDiscipline();
        btpd = cbt.calculateForThreeEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 4, 1));
        jLabel_10KMWomen.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_10KMWomenValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_20KMVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_20KMVrouwValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_50KMVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_50KMVrouwValue.setText(String.valueOf(btpd.getValue3()));
    }

    private void CalculateForLongDistanceRunners() {
        btpd = cbt.calculateForThreeEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdLongDistanceRunners, 0));
        ArrayList<Athlete> athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdLongDistanceRunners, ParameterNames.sexMale);

        for (int i = 0; i < athletesList.size(); i++) {
            System.out.println("ID of Athlete: " + athletesList.get(i).getIdOfAthlete() + "btpd id: " + btpd.getAthleteID1());
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                System.out.println(controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1());
                jCombobox_5000MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId5000Metres);
                jCombobox_5000MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_5000MeterMan.setSelectedIndex(0);
        jLabel_5000MeterManValue.setText(String.valueOf(btpd.getValue1()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_10000MeterMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId10000Metres);
                jCombobox_10000MeterMan.insertItemAt(f, i);
            }
        }
        jCombobox_10000MeterMan.setSelectedIndex(0);
        jLabel_10000MeterManValue.setText(String.valueOf(btpd.getValue2()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_MarathonMan.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventIdMarathon);
                jCombobox_MarathonMan.insertItemAt(f, i);
            }
        }
        jCombobox_MarathonMan.setSelectedIndex(0);
        jLabel_MarathonManValue.setText(String.valueOf(btpd.getValue3()));
        btpd = cbt.calculateForThreeEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdLongDistanceRunners, ParameterNames.sexFemale));
        athletesList = controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), ParameterNames.specialltyIdLongDistanceRunners, ParameterNames.sexFemale);

        for (int i = 0; i < athletesList.size(); i++) {
            System.out.println("ID of Athlete: " + athletesList.get(i).getIdOfAthlete() + "btpd id: " + btpd.getAthleteID1());
            if (btpd.getAthleteID1() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1();
                System.out.println(controller.getAthletesNameByID(btpd.getAthleteID1()) + " ~ " + btpd.getValue1());
                jCombobox_5000MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId5000Metres);
                jCombobox_5000MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_5000MeterWomen.setSelectedIndex(0);
        jLabel_5000MeterWomenValue.setText(String.valueOf(btpd.getValue1()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID2() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID2()) + " ~ " + btpd.getValue2();
                jCombobox_10000MeterWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventId10000Metres);
                jCombobox_10000MeterWomen.insertItemAt(f, i);
            }
        }
        jCombobox_10000MeterWomen.setSelectedIndex(0);
        jLabel_10000MeterWomenValue.setText(String.valueOf(btpd.getValue2()));
        
        for (int i = 0; i < athletesList.size(); i++) {
            if (btpd.getAthleteID3() == athletesList.get(i).getIdOfAthlete()) {
                String x = controller.getAthletesNameByID(btpd.getAthleteID3()) + " ~ " + btpd.getValue3();
                jCombobox_MarathonWomen.insertItemAt(x, 0);
            } else {
                String f = controller.getAthletesNameByID(athletesList.get(i).getIdOfAthlete()) + " ~ " + cbt.getEventScoreOfAthleteByEventAndId(athletesList.get(i).getIdOfAthlete(), ParameterNames.eventIdMarathon);
                jCombobox_MarathonWomen.insertItemAt(f, i);
            }
        }
        jCombobox_MarathonWomen.setSelectedIndex(0);
        jLabel_MarathonWomenValue.setText(String.valueOf(btpd.getValue3()));
    }

    private void CalculateForJumpers() {
        btpd = cbt.calculateForFourEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 5, 0));
        jLabel_HighjumpMan.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_HighjumpManValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_PolevaultMan.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_PolevaultManValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_LongjumpMan.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_LongjumpManValue.setText(String.valueOf(btpd.getValue3()));
        jLabel_TriplejumpMan.setText(controller.getAthletesNameByID(btpd.getAthleteID4()));
        jLabel_TriplejumpManValue.setText(String.valueOf(btpd.getValue4()));
        btpd = new BestTeamPerDiscipline();
        btpd = cbt.calculateForFourEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 5, 1));
        jLabel_HighjumpWomen.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_HighjumpWomenValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_PolevaultVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_PolevaultVrouwValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_LongjumpVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_LongjumpVrouwValue.setText(String.valueOf(btpd.getValue3()));
        jLabel_TriplejumpVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID4()));
        jLabel_TriplejumpVrouwValue.setText(String.valueOf(btpd.getValue4()));
    }

    private void CalculateForThrowers() {
        btpd = cbt.calculateForFourEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 6, 0));
        jLabel_ShotputMan.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_ShotputManValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_DiscusthrowMan.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_DiscusthrowManValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_HammerthrowMan.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_HammerthrowManValue.setText(String.valueOf(btpd.getValue3()));
        jLabel_JavelinthrowMan.setText(controller.getAthletesNameByID(btpd.getAthleteID4()));
        jLabel_JavelinthrowManValue.setText(String.valueOf(btpd.getValue4()));
        btpd = new BestTeamPerDiscipline();
        btpd = cbt.calculateForFourEvents(controller.getAthleteBySpecialtyAndSex(controller.getAthletes(), 6, 1));
        jLabel_ShotputWomen.setText(controller.getAthletesNameByID(btpd.getAthleteID1()));
        jLabel_ShotputWomenValue.setText(String.valueOf(btpd.getValue1()));
        jLabel_DiscusthrowVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID2()));
        jLabel_DiscusthrowVrouwValue.setText(String.valueOf(btpd.getValue2()));
        jLabel_HammerthrowVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID3()));
        jLabel_HammerthrowVrouwValue.setText(String.valueOf(btpd.getValue3()));
        jLabel_JavelinthrowVrouw.setText(controller.getAthletesNameByID(btpd.getAthleteID4()));
        jLabel_JavelinthrowVrouwValue.setText(String.valueOf(btpd.getValue4()));
    }

    private void setTotalValues() {
        try {
            int total;
            total = Integer.valueOf(jLabel_100MeterManValue.getText()) + Integer.valueOf(jLabel_200MeterManValue.getText())
                    + Integer.valueOf(jLabel_400MeterManValue.getText()) + Integer.valueOf(jLabel_110MeterHordenManValue.getText())
                    + Integer.valueOf(jLabel_400MeterHordenManValue.getText());
            jLabel_SprintersMenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_800MeterManValue.getText()) + Integer.valueOf(jLabel_1500MeterManValue.getText())
                    + Integer.valueOf(jLabel_3000MeterManValue.getText());
            jLabel_MiddleDistanceRunnersMenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_5000MeterManValue.getText()) + Integer.valueOf(jLabel_10000MeterManValue.getText()) + Integer.valueOf(jLabel_MarathonManValue.getText());
            jLabel_LongDistanceRunnersMenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_10KMManValue.getText()) + Integer.valueOf(jLabel_20KMManValue.getText()) + Integer.valueOf(jLabel_50KMManValue.getText());
            jLabel_RaceWalkersMenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_HighjumpManValue.getText()) + Integer.valueOf(jLabel_PolevaultManValue.getText()) + Integer.valueOf(jLabel_LongjumpManValue.getText()) + Integer.valueOf(jLabel_TriplejumpManValue.getText());
            jLabel_JumpersMenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_ShotputManValue.getText()) + Integer.valueOf(jLabel_DiscusthrowManValue.getText()) + Integer.valueOf(jLabel_HammerthrowManValue.getText()) + Integer.valueOf(jLabel_JavelinthrowManValue.getText());
            jLabel_ThrowersMenTotal.setText(String.valueOf(total));

            total = Integer.valueOf(jLabel_100MeterWomenValue.getText()) + Integer.valueOf(jLabel_200MeterWomenValue.getText())
                    + Integer.valueOf(jLabel_400MeterWomenValue.getText()) + Integer.valueOf(jLabel_100MeterHordenWomenValue.getText())
                    + Integer.valueOf(jLabel_400MeterHordenWomenValue.getText());
            jLabel_SprintersWomenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_800MeterWomenValue.getText()) + Integer.valueOf(jLabel_1500MeterWomenValue.getText())
                    + Integer.valueOf(jLabel_3000MeterWomenValue.getText());
            jLabel_MiddleDistanceRunnersWomenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_5000MeterWomenValue.getText()) + Integer.valueOf(jLabel_10000MeterWomenValue.getText()) + Integer.valueOf(jLabel_MarathonWomenValue.getText());
            jLabel_LongDistanceRunnersWomenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_10KMWomenValue.getText()) + Integer.valueOf(jLabel_20KMVrouwValue.getText()) + Integer.valueOf(jLabel_50KMVrouwValue.getText());
            jLabel_RaceWalkersWomenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_HighjumpWomenValue.getText()) + Integer.valueOf(jLabel_PolevaultVrouwValue.getText()) + Integer.valueOf(jLabel_LongjumpVrouwValue.getText()) + Integer.valueOf(jLabel_TriplejumpVrouwValue.getText());
            jLabel_JumpersWomenTotal.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_ShotputWomenValue.getText()) + Integer.valueOf(jLabel_DiscusthrowVrouwValue.getText()) + Integer.valueOf(jLabel_HammerthrowVrouwValue.getText()) + Integer.valueOf(jLabel_JavelinthrowVrouwValue.getText());
            jLabel_ThrowersWomenTotal.setText(String.valueOf(total));

            total = Integer.valueOf(jLabel_SprintersMenTotal.getText()) + Integer.valueOf(jLabel_MiddleDistanceRunnersMenTotal.getText()) + Integer.valueOf(jLabel_LongDistanceRunnersMenTotal.getText()) + Integer.valueOf(jLabel_RaceWalkersMenTotal.getText())
                    + Integer.valueOf(jLabel_JumpersMenTotal.getText()) + Integer.valueOf(jLabel_ThrowersMenTotal.getText());
            jLabel_TotalMenValue.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_SprintersWomenTotal.getText()) + Integer.valueOf(jLabel_MiddleDistanceRunnersWomenTotal.getText()) + Integer.valueOf(jLabel_LongDistanceRunnersWomenTotal.getText()) + Integer.valueOf(jLabel_RaceWalkersWomenTotal.getText())
                    + Integer.valueOf(jLabel_JumpersWomenTotal.getText()) + Integer.valueOf(jLabel_ThrowersWomenTotal.getText());
            jLabel_TotalWomenValue.setText(String.valueOf(total));
            total = Integer.valueOf(jLabel_TotalMenValue.getText()) + Integer.valueOf(jLabel_TotalWomenValue.getText());
            jLabel_TotalValue.setText(String.valueOf(total));
        } catch (Exception e) {
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (Exception e) {
            System.out.println("Unable to load Windows look and feel");
        }
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new BestTeamGUI().setVisible(true);
            }
        });
    }

    /** Returns an ImageIcon, or null if the path was invalid. */
    protected static ImageIcon createImageIcon(String path) {
        //  java.net.URL imgURL = path;
        if (path != null) {
            return new ImageIcon(path);
        } else {
            System.err.println("Couldn't find image file: " + path);
            return null;
        }
    }

    private void translateGUI(ResourceBundle b) {
        jMenu_File.setText(b.getString("FILE"));
        jMenu_Languague.setText(b.getString("LANGUAGE"));

        jMenuItem_Close.setText(b.getString("CLOSE"));
        
        jMenuItem_English.setText(ParameterNames.languageENGLISH);
        jMenuItem_Dutch.setText(ParameterNames.languageDUTCH);
        jMenuItem_Polish.setText(ParameterNames.languagePOLISH);
        jMenuItem_Deutsch.setText(ParameterNames.languageDEUTSCH);
        jMenuItem_Francais.setText(ParameterNames.languageFRANCAIS);
        jMenuItem_Espanol.setText(ParameterNames.languageESPANOL);
        jMenuItem_Portuguese.setText(ParameterNames.languagePORTUGUESE);
        jMenuItem_Czech.setText(ParameterNames.languageCZECH);
        jMenuItem_Greek.setText(ParameterNames.languageGREEK);
        jMenuItem_Italian.setText(ParameterNames.languageITALIAN);
        jMenuItem_Estonian.setText(ParameterNames.languageESTONIAN);
        jMenuItem_Russian.setText(ParameterNames.languageRUSSIAN);
        jMenuItem_Hungarian.setText(ParameterNames.languageHungarian);

        jLabel_100Meter.setText(b.getString("100METERS"));
        jLabel_100MeterWomen.setText(b.getString("100METERS"));
        jLabel_200Meter.setText(b.getString("200METERS"));
        jLabel_200MeterWomen.setText(b.getString("200METERS"));
        jLabel_400Meter.setText(b.getString("400METERS"));
        jLabel_400MeterWomen.setText(b.getString("400METERS"));
        jLabel_110MeterHorden.setText(b.getString("110METERHURDLES"));
        jLabel_100MeterHordenWomen.setText(b.getString("100METERHURDLES"));
        jLabel_400MeterHorden.setText(b.getString("400METERHURDLES"));
        jLabel_400MeterHordenWomen.setText(b.getString("400METERHURDLES"));

        jLabel_800MeterMan.setText(b.getString("800METERS"));
        jLabel_1500MeterMan.setText(b.getString("1500METERS"));
        jLabel_3000MeterMan.setText(b.getString("3000STEEPLECHASE"));
        jLabel_800MeterWomen.setText(b.getString("800METERS"));
        jLabel_1500MeterWomen.setText(b.getString("1500METERS"));
        jLabel_3000MeterWomen.setText(b.getString("3000STEEPLECHASE"));

        jLabel_5000MeterMan.setText(b.getString("5000METERS"));
        jLabel_10000MeterMan.setText(b.getString("10000METERS"));
        jLabel_MarathonMan.setText(b.getString("MARATHON"));
        jLabel_5000MeterWomen.setText(b.getString("5000METERS"));
        jLabel_10000MeterWomen.setText(b.getString("10000METERS"));
        jLabel_MarathonWomen.setText(b.getString("MARATHON"));

        jLabel_10KM.setText(b.getString("10KMRACEWALK"));
        jLabel_20KM.setText(b.getString("20KMRACEWALK"));
        jLabel_50KM.setText(b.getString("50KMRACEWALK"));
        jLabel_10KM2.setText(b.getString("10KMRACEWALK"));
        jLabel_20KM2.setText(b.getString("20KMRACEWALK"));
        jLabel_50KM2.setText(b.getString("50KMRACEWALK"));

        jLabel_Highjump.setText(b.getString("HIGHJUMP"));
        jLabel_Highjump2.setText(b.getString("HIGHJUMP"));
        jLabel_Polevault.setText(b.getString("POLEVAULT"));
        jLabel_Polevault2.setText(b.getString("POLEVAULT"));
        jLabel_Longjump.setText(b.getString("LONGJUMP"));
        jLabel_Longjump2.setText(b.getString("LONGJUMP"));
        jLabel_Triplejump.setText(b.getString("TRIPLEJUMP"));
        jLabel_Triplejump2.setText(b.getString("TRIPLEJUMP"));

        jLabel_Shotput.setText(b.getString("SHOTPUT"));
        jLabel_Shotput2.setText(b.getString("SHOTPUT"));
        jLabel_Discusthrow.setText(b.getString("DISCUSTHROW"));
        jLabel_Discusthrow2.setText(b.getString("DISCUSTHROW"));
        jLabel_Hammerthrow.setText(b.getString("HAMMERTHROW"));
        jLabel_Hammerthrow2.setText(b.getString("HAMMERTHROW"));
        jLabel_Javelinthrow.setText(b.getString("JAVELINTHROW"));
        jLabel_Javelinthrow2.setText(b.getString("JAVELINTHROW"));

        jLabel_SprintersMen.setText(b.getString("SPRINTERS"));
        jLabel_MiddleDistanceRunnersMen.setText(b.getString("MIDDLE_DISTANCE_RUNNERS"));
        jLabel_LongDistanceRunnersMen.setText(b.getString("LONG_DISTANCE_RUNNERS"));
        jLabel_RaceWalkersMen.setText(b.getString("RACE_WALKERS"));
        jLabel_JumpersMen.setText(b.getString("JUMPERS"));
        jLabel_ThrowersMen.setText(b.getString("THROWERS"));

        jLabel_SprintersWomen.setText(b.getString("SPRINTERS"));
        jLabel_MiddleDistanceRunnersWomen.setText(b.getString("MIDDLE_DISTANCE_RUNNERS"));
        jLabel_LongDistanceRunnersWomen.setText(b.getString("LONG_DISTANCE_RUNNERS"));
        jLabel_RaceWalkersWomen.setText(b.getString("RACE_WALKERS"));
        jLabel_JumpersWomen.setText(b.getString("JUMPERS"));
        jLabel_ThrowersWomen.setText(b.getString("THROWERS"));

        jLabel_TotalMen.setText("Total " + b.getString("MEN") + ":");
        jLabel_TotalWomen.setText("Total " + b.getString("WOMEN") + ":");
        jLabel_Total.setText("Total:");

        jPanelRight1.setBorder(BorderFactory.createTitledBorder("Total " + b.getString("MEN")));
        jPanelRight2.setBorder(BorderFactory.createTitledBorder("Total " + b.getString("WOMEN")));
        jPanelRight3.setBorder(BorderFactory.createTitledBorder("Total"));

        jPanel_SprintersMen.setBorder(BorderFactory.createTitledBorder(b.getString("SPRINTERS") + " - " + b.getString("MEN")));
        jPanel_MiddleDistanceMen.setBorder(BorderFactory.createTitledBorder(b.getString("MIDDLE_DISTANCE_RUNNERS") + " - " + b.getString("MEN")));
        jPanel_LongDistanceMen.setBorder(BorderFactory.createTitledBorder(b.getString("LONG_DISTANCE_RUNNERS") + " - " + b.getString("MEN")));
        jPanel_RaceWalkersMen.setBorder(BorderFactory.createTitledBorder(b.getString("RACE_WALKERS") + " - " + b.getString("MEN")));
        jPanel_JumpersMen.setBorder(BorderFactory.createTitledBorder(b.getString("JUMPERS") + " - " + b.getString("MEN")));
        jPanel_ThrowersMen.setBorder(BorderFactory.createTitledBorder(b.getString("THROWERS") + " - " + b.getString("MEN")));

        jPanel_SprintersWomen.setBorder(BorderFactory.createTitledBorder(b.getString("SPRINTERS") + " - " + b.getString("WOMEN")));
        jPanel_MiddleDistanceWomen.setBorder(BorderFactory.createTitledBorder(b.getString("MIDDLE_DISTANCE_RUNNERS") + " - " + b.getString("WOMEN")));
        jPanel_LongDistanceWomen.setBorder(BorderFactory.createTitledBorder(b.getString("LONG_DISTANCE_RUNNERS") + " - " + b.getString("WOMEN")));
        jPanel_RaceWalkersWomen.setBorder(BorderFactory.createTitledBorder(b.getString("RACE_WALKERS") + " - " + b.getString("WOMEN")));
        jPanel_JumpersWomen.setBorder(BorderFactory.createTitledBorder(b.getString("JUMPERS") + " - " + b.getString("WOMEN")));
        jPanel_ThrowersWomen.setBorder(BorderFactory.createTitledBorder(b.getString("THROWERS") + " - " + b.getString("WOMEN")));

        jPanel_Relays.setBorder(BorderFactory.createTitledBorder("Estaffete"));

    }

    private void jMenuItem_EnglishActionPerformed(java.awt.event.ActionEvent evt) {
        translateGUI(controller.getLanguague("en"));
    }

    private void jMenuItem_DutchActionPerformed(java.awt.event.ActionEvent evt) {
        translateGUI(controller.getLanguague("nl"));
    }

    private void jMenuItem_ITALIANActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("it"));
    }
    
    private void jMenuItem_HungarianActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("hu"));
    }

    private void jMenuItem_GREEKActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("el"));
    }

    private void jMenuItem_CZECHActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("cs"));
    }

    private void jMenuItem_PolishActionPerformed(java.awt.event.ActionEvent evt) {
        translateGUI(controller.getLanguague("pl"));
    }

    private void jMenuItem_PortugueseActionPerformed(java.awt.event.ActionEvent evt) {
        translateGUI(controller.getLanguague("pt"));
    }

    private void jMenuItem_DEUTSCHActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("de"));
    }

    private void jMenuItem_FRANCAISActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("fr"));
    }

    private void jMenuItem_ESPANOLActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("es"));
    }

    private void jMenuItem_ESTONIANActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("et"));
    }

    private void jMenuItem_RUSSIANActionPerformed(ActionEvent evt) {
        translateGUI(controller.getLanguague("ru"));
    }

    private void jMenuItem_AfsluitenActionPerformed(java.awt.event.ActionEvent evt) {
        this.dispose();
    }

    private void jCombobox_100MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_100MeterMan.getSelectedItem().toString()); 
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId100Metres);
        jLabel_100MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_200MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_200MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId200Metres);
        jLabel_200MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_400MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_400MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId400Metres);
        jLabel_400MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_110MeterHordenManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_110MeterHordenMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId110Hurdles);
        jLabel_110MeterHordenManValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_400MeterHordenManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_400MeterHordenMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId400Hurdles);
        jLabel_400MeterHordenManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_100MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_100MeterWomen.getSelectedItem().toString()); 
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId100Metres);
        jLabel_100MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_200MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_200MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId200Metres);
        jLabel_200MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_400MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_400MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId400Metres);
        jLabel_400MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_100MeterHordenWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_100MeterHordenWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId110Hurdles);
        jLabel_100MeterHordenWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }

    private void jCombobox_400MeterHordenWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_400MeterHordenWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId400Hurdles);
        jLabel_400MeterHordenWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    private void jCombobox_800MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_800MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId800Metres);
        jLabel_800MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_1500MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_1500MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId1500Metres);
        jLabel_1500MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_3000MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_3000MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId3000Steeplechase);
        jLabel_3000MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_800MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_800MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId800Metres);
        jLabel_800MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_1500MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_1500MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId1500Metres);
        jLabel_1500MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_3000MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_3000MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId3000Steeplechase);
        jLabel_3000MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_5000MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_5000MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId5000Metres);
        jLabel_5000MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_10000MeterManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_10000MeterMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId10000Metres);
        jLabel_10000MeterManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_MarathonManActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_MarathonMan.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventIdMarathon);
        jLabel_MarathonManValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_5000MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_5000MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId5000Metres);
        jLabel_5000MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_10000MeterWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_10000MeterWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventId10000Metres);
        jLabel_10000MeterWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private void jCombobox_MarathonWomenActionPerformed(ActionEvent evt) {
        String name = controller.getNameFromCombobox(jCombobox_MarathonWomen.getSelectedItem().toString());
        int score = cbt.getEventScoreOfAthleteByEventAndId(controller.getAthletesIdByName(name), ParameterNames.eventIdMarathon);
        jLabel_MarathonWomenValue.setText(String.valueOf(score));
        setTotalValues();
    }
    
    private javax.swing.JMenu jMenu_File;
    private javax.swing.JMenu jMenu_Languague;
    private javax.swing.JMenuBar jMenuBar1;
    JMenuItem jMenuItem_Close;
    JMenuItem jMenuItem_English;
    JMenuItem jMenuItem_Dutch;
    JMenuItem jMenuItem_Polish;
    JMenuItem jMenuItem_Deutsch;
    JMenuItem jMenuItem_Francais;
    JMenuItem jMenuItem_Espanol;
    JMenuItem jMenuItem_Portuguese;
    JMenuItem jMenuItem_Hungarian;
    private javax.swing.JMenuItem jMenuItem_Estonian;
    private javax.swing.JMenuItem jMenuItem_Russian;
    private javax.swing.JMenuItem jMenuItem_Italian;
    private javax.swing.JMenuItem jMenuItem_Czech;
    private javax.swing.JMenuItem jMenuItem_Greek;
    JPanel jPanel_SprintersMen;
    JPanel jPanel_SprintersMenMiddle;
    JPanel jPanel_MiddleDistanceMen;
    JPanel jPanel_LongDistanceMen;
    JPanel jPanel_SprintersWomen;
    JPanel jPanel_MiddleDistanceWomen;
    JPanel jPanel_LongDistanceWomen;
    JPanel jPanel_RaceWalkersMen;
    JPanel jPanel_JumpersMen;
    JPanel jPanel_ThrowersMen;
    JPanel jPanel_RaceWalkersWomen;
    JPanel jPanel_JumpersWomen;
    JPanel jPanel_ThrowersWomen;
    JPanel jPanelRight1;
    JPanel jPanelRight2;
    JPanel jPanelRight3;
    JLabel jLabel_100Meter;
    JLabel jLabel_100Meter2;
    JComboBox jCombobox_100MeterMan;
    JLabel jLabel_100MeterManValue;
    JLabel jLabel_100MeterWomen;
    JLabel jLabel_100MeterWomenValue;
    JLabel jLabel_200Meter;
    JLabel jLabel_200Meter2;
    JComboBox jCombobox_200MeterMan;
    JLabel jLabel_200MeterManValue;
    JLabel jLabel_200MeterWomen;
    JLabel jLabel_200MeterWomenValue;
    JLabel jLabel_400Meter;
    JLabel jLabel_400Meter2;
    JComboBox jCombobox_400MeterMan;
    JLabel jLabel_400MeterManValue;
    JLabel jLabel_400MeterWomen;
    JLabel jLabel_400MeterWomenValue;
    JLabel jLabel_110MeterHorden;
    JLabel jLabel_100MeterHorden2;
    JComboBox jCombobox_110MeterHordenMan;
    JLabel jLabel_110MeterHordenManValue;
    JLabel jLabel_100MeterHordenWomen;
    JLabel jLabel_100MeterHordenWomenValue;
    JLabel jLabel_400MeterHorden;
    JLabel jLabel_400MeterHorden2;
    JComboBox jCombobox_400MeterHordenMan;
    JLabel jLabel_400MeterHordenManValue;
    JLabel jLabel_400MeterHordenWomen;
    JLabel jLabel_400MeterHordenWomenValue;
    JComboBox jCombobox_800MeterMan;
    JComboBox jCombobox_800MeterWomen;
    JLabel jLabel_800Meter;
    JLabel jLabel_800Meter2;
    JLabel jLabel_800MeterMan;
    JLabel jLabel_800MeterManValue;
    JLabel jLabel_800MeterWomen;
    JLabel jLabel_800MeterWomenValue;
    JComboBox jCombobox_1500MeterMan;
    JComboBox jCombobox_1500MeterWomen;
    JLabel jLabel_1500Meter;
    JLabel jLabel_1500Meter2;
    JLabel jLabel_1500MeterMan;
    JLabel jLabel_1500MeterManValue;
    JLabel jLabel_1500MeterWomen;
    JLabel jLabel_1500MeterWomenValue;
    JComboBox jCombobox_3000MeterMan;
    JComboBox jCombobox_5000MeterMan;
    JComboBox jCombobox_10000MeterMan;
    JComboBox jCombobox_3000MeterWomen;
    JComboBox jCombobox_5000MeterWomen;
    JComboBox jCombobox_10000MeterWomen;
    JComboBox jCombobox_MarathonWomen;
    JComboBox jCombobox_MarathonMan;
    JComboBox jCombobox_100MeterWomen;
    JComboBox jCombobox_200MeterWomen;
    JComboBox jCombobox_400MeterWomen;
    JComboBox jCombobox_100MeterHordenWomen;
    JComboBox jCombobox_400MeterHordenWomen;
    JPanel jPanel_SprintersWomenMiddle;
    JLabel jLabel_3000Meter;
    JLabel jLabel_3000MeterWomen;
    JLabel jLabel_3000MeterMan;
    JLabel jLabel_3000MeterManValue;
    JLabel jLabel_3000MeterVrouw;
    JLabel jLabel_3000MeterWomenValue;
    JLabel jLabel_5000Meter;
    JLabel jLabel_5000Meter2;
    JLabel jLabel_5000MeterMan;
    JLabel jLabel_5000MeterManValue;
    JLabel jLabel_5000MeterWomen;
    JLabel jLabel_5000MeterWomenValue;
    JLabel jLabel_10000Meter;
    JLabel jLabel_10000Meter2;
    JLabel jLabel_10000MeterMan;
    JLabel jLabel_10000MeterManValue;
    JLabel jLabel_10000MeterWomen;
    JLabel jLabel_10000MeterWomenValue;
    JLabel jLabel_Marathon;
    JLabel jLabel_Marathon2;
    JLabel jLabel_MarathonMan;
    JLabel jLabel_MarathonManValue;
    JLabel jLabel_MarathonWomen;
    JLabel jLabel_MarathonWomenValue;
    JLabel jLabel_10KM;
    JLabel jLabel_10KM2;
    JLabel jLabel_10KMMan;
    JLabel jLabel_10KMManValue;
    JLabel jLabel_10KMWomen;
    JLabel jLabel_10KMWomenValue;
    JLabel jLabel_20KM;
    JLabel jLabel_20KM2;
    JLabel jLabel_20KMMan;
    JLabel jLabel_20KMManValue;
    JLabel jLabel_20KMVrouw;
    JLabel jLabel_20KMVrouwValue;
    JLabel jLabel_50KM;
    JLabel jLabel_50KM2;
    JLabel jLabel_50KMMan;
    JLabel jLabel_50KMManValue;
    JLabel jLabel_50KMVrouw;
    JLabel jLabel_50KMVrouwValue;
    JLabel jLabel_Highjump;
    JLabel jLabel_Highjump2;
    JLabel jLabel_HighjumpMan;
    JLabel jLabel_HighjumpManValue;
    JLabel jLabel_HighjumpWomen;
    JLabel jLabel_HighjumpWomenValue;
    JLabel jLabel_Polevault;
    JLabel jLabel_Polevault2;
    JLabel jLabel_PolevaultMan;
    JLabel jLabel_PolevaultManValue;
    JLabel jLabel_PolevaultVrouw;
    JLabel jLabel_PolevaultVrouwValue;
    JLabel jLabel_Longjump;
    JLabel jLabel_Longjump2;
    JLabel jLabel_LongjumpMan;
    JLabel jLabel_LongjumpManValue;
    JLabel jLabel_LongjumpVrouw;
    JLabel jLabel_LongjumpVrouwValue;
    JLabel jLabel_Triplejump;
    JLabel jLabel_Triplejump2;
    JLabel jLabel_TriplejumpMan;
    JLabel jLabel_TriplejumpManValue;
    JLabel jLabel_TriplejumpVrouw;
    JLabel jLabel_TriplejumpVrouwValue;
    JLabel jLabel_Shotput;
    JLabel jLabel_Shotput2;
    JLabel jLabel_ShotputMan;
    JLabel jLabel_ShotputManValue;
    JLabel jLabel_ShotputWomen;
    JLabel jLabel_ShotputWomenValue;
    JLabel jLabel_Discusthrow;
    JLabel jLabel_Discusthrow2;
    JLabel jLabel_DiscusthrowMan;
    JLabel jLabel_DiscusthrowManValue;
    JLabel jLabel_DiscusthrowVrouw;
    JLabel jLabel_DiscusthrowVrouwValue;
    JLabel jLabel_Hammerthrow;
    JLabel jLabel_Hammerthrow2;
    JLabel jLabel_HammerthrowMan;
    JLabel jLabel_HammerthrowManValue;
    JLabel jLabel_HammerthrowVrouw;
    JLabel jLabel_HammerthrowVrouwValue;
    JLabel jLabel_Javelinthrow;
    JLabel jLabel_Javelinthrow2;
    JLabel jLabel_JavelinthrowMan;
    JLabel jLabel_JavelinthrowManValue;
    JLabel jLabel_JavelinthrowVrouw;
    JLabel jLabel_JavelinthrowVrouwValue;
    JLabel jLabel_SprintersMen;
    JLabel jLabel_SprintersMenTotal;
    JLabel jLabel_MiddleDistanceRunnersMen;
    JLabel jLabel_MiddleDistanceRunnersMenTotal;
    JLabel jLabel_LongDistanceRunnersMen;
    JLabel jLabel_LongDistanceRunnersMenTotal;
    JLabel jLabel_RaceWalkersMen;
    JLabel jLabel_RaceWalkersMenTotal;
    JLabel jLabel_JumpersMen;
    JLabel jLabel_JumpersMenTotal;
    JLabel jLabel_ThrowersMen;
    JLabel jLabel_ThrowersMenTotal;
    JLabel jLabel_SprintersWomen;
    JLabel jLabel_SprintersWomenTotal;
    JLabel jLabel_MiddleDistanceRunnersWomen;
    JLabel jLabel_MiddleDistanceRunnersWomenTotal;
    JLabel jLabel_LongDistanceRunnersWomen;
    JLabel jLabel_LongDistanceRunnersWomenTotal;
    JLabel jLabel_RaceWalkersWomen;
    JLabel jLabel_RaceWalkersWomenTotal;
    JLabel jLabel_JumpersWomen;
    JLabel jLabel_JumpersWomenTotal;
    JLabel jLabel_ThrowersWomen;
    JLabel jLabel_ThrowersWomenTotal;
    JLabel jLabel_TotalMen;
    JLabel jLabel_TotalMenValue;
    JLabel jLabel_TotalWomen;
    JLabel jLabel_TotalWomenValue;
    JLabel jLabel_Total;
    JLabel jLabel_TotalValue;
    JPanel jPanel_Relays;
    JLabel jLabel_Relays4x100Men;
    JLabel jLabel_Relays4x100MenValue;
    JLabel jLabel_Relays4x100Women;
    JLabel jLabel_Relays4x100WomenValue;
    JLabel jLabel_Relays4x400Men;
    JLabel jLabel_Relays4x400MenValue;
    JLabel jLabel_Relays4x400Women;
    JLabel jLabel_Relays4x400WomenValue;

    private void makeComponents() {
        //Creating the Frame
        this.setDefaultCloseOperation(CalculateDisciplineGUI.DISPOSE_ON_CLOSE);
        // this.setSize(800, 520);
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width - 1010) / 2, (screenSize.height - 503) / 2, 1010, 503);
        setResizable(false);
        //Creating the MenuBar and adding components
        jMenuBar1 = new JMenuBar();
        jMenu_File = new JMenu();
        jMenu_Languague = new JMenu();
        jMenuBar1.add(jMenu_File);
        jMenuBar1.add(jMenu_Languague);
        ImageIcon icon;
        icon = createImageIcon("img/close.png");
        jMenuItem_Close = new JMenuItem(icon);
        jMenuItem_Close.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_AfsluitenActionPerformed(evt);
            }
        });

        icon = createImageIcon("img/gb.png");
        jMenuItem_English = new JMenuItem(icon);
        jMenuItem_English.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_EnglishActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/nl.png");
        jMenuItem_Dutch = new JMenuItem(icon);
        jMenuItem_Dutch.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_DutchActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/pl.png");
        jMenuItem_Polish = new JMenuItem(icon);
        jMenuItem_Polish.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_PolishActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/hu.png");
        jMenuItem_Hungarian = new JMenuItem(icon);
        jMenuItem_Hungarian.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_HungarianActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/pt.png");
        jMenuItem_Portuguese = new JMenuItem(icon);
        jMenuItem_Portuguese.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_PortugueseActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/de.png");
        jMenuItem_Deutsch = new JMenuItem(icon);
        jMenuItem_Deutsch.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_DEUTSCHActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/et.png");
        jMenuItem_Estonian = new JMenuItem(icon);
        jMenuItem_Estonian.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_ESTONIANActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/ru.png");
        jMenuItem_Russian = new JMenuItem(icon);
        jMenuItem_Russian.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_RUSSIANActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/fr.png");
        jMenuItem_Francais = new JMenuItem(icon);
        jMenuItem_Francais.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_FRANCAISActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/es.png");
        jMenuItem_Espanol = new JMenuItem(icon);
        jMenuItem_Espanol.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_ESPANOLActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/gr.png");
        jMenuItem_Greek = new JMenuItem(icon);
        jMenuItem_Greek.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_GREEKActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/cz.png");
        jMenuItem_Czech = new JMenuItem(icon);
        jMenuItem_Czech.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_CZECHActionPerformed(evt);
            }
        });
        icon = createImageIcon("img/it.png");
        jMenuItem_Italian = new JMenuItem(icon);
        jMenuItem_Italian.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem_ITALIANActionPerformed(evt);
            }
        });
        jMenu_File.add(jMenuItem_Close);
        jMenu_Languague.add(jMenuItem_Czech);
        jMenu_Languague.add(jMenuItem_Deutsch);
        jMenu_Languague.add(jMenuItem_Estonian);
        jMenu_Languague.add(jMenuItem_English);
        jMenu_Languague.add(jMenuItem_Greek);
        jMenu_Languague.add(jMenuItem_Espanol);
        jMenu_Languague.add(jMenuItem_Francais);
        jMenu_Languague.add(jMenuItem_Hungarian);
        jMenu_Languague.add(jMenuItem_Italian);
        jMenu_Languague.add(jMenuItem_Dutch);
        jMenu_Languague.add(jMenuItem_Polish);
        jMenu_Languague.add(jMenuItem_Portuguese);
        jMenu_Languague.add(jMenuItem_Russian);

        jPanel_SprintersMen = new JPanel(new BorderLayout());
        jPanel_SprintersMen.setPreferredSize(new Dimension(200, 197));
        jPanel_SprintersMenMiddle = new JPanel(new BorderLayout());
        
        Font newLabelFont;
        JPanel jPanel_SprintersMen100metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMen100meter = new JPanel(new BorderLayout());  
        jLabel_100Meter = new JLabel();
        newLabelFont = new Font(jLabel_100Meter.getFont().getName(), Font.BOLD, jLabel_100Meter.getFont().getSize());
        jLabel_100Meter.setFont(newLabelFont);
        jCombobox_100MeterMan = new JComboBox();//new JLabel();44
        jCombobox_100MeterMan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_100MeterManActionPerformed(evt);
            }
        });
        jLabel_100MeterManValue = new JLabel();
        jLabel_100MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMen100metertop.add(BorderLayout.WEST, jLabel_100Meter);
        jPanel_SprintersMen100metertop.add(BorderLayout.EAST, jLabel_100MeterManValue);
        jPanel_SprintersMen100meter.add(BorderLayout.NORTH, jPanel_SprintersMen100metertop);
        jPanel_SprintersMen100meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_100MeterMan));
       
        JPanel jPanel_SprintersMen200metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMen200meter = new JPanel(new BorderLayout());  
        jLabel_200Meter = new JLabel();
        newLabelFont = new Font(jLabel_200Meter.getFont().getName(), Font.BOLD, jLabel_200Meter.getFont().getSize());
        jLabel_200Meter.setFont(newLabelFont);
        jCombobox_200MeterMan = new JComboBox();//new JLabel();
        jCombobox_200MeterMan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_200MeterManActionPerformed(evt);
            }
        });
        jLabel_200MeterManValue = new JLabel();
        jLabel_200MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMen200metertop.add(BorderLayout.WEST, jLabel_200Meter);
        jPanel_SprintersMen200metertop.add(BorderLayout.EAST, jLabel_200MeterManValue);
        jPanel_SprintersMen200meter.add(BorderLayout.NORTH, jPanel_SprintersMen200metertop);
        jPanel_SprintersMen200meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_200MeterMan));
        
        JPanel jPanel_SprintersMen400metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMen400meter = new JPanel(new BorderLayout());  
        jLabel_400Meter = new JLabel();
        newLabelFont = new Font(jLabel_400Meter.getFont().getName(), Font.BOLD, jLabel_400Meter.getFont().getSize());
        jLabel_400Meter.setFont(newLabelFont);
        jCombobox_400MeterMan = new JComboBox();//new JLabel();
        jCombobox_400MeterMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_400MeterManActionPerformed(evt);
            }
        });
        jLabel_400MeterManValue = new JLabel();
        jLabel_400MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMen400metertop.add(BorderLayout.WEST, jLabel_400Meter);
        jPanel_SprintersMen400metertop.add(BorderLayout.EAST, jLabel_400MeterManValue);
        jPanel_SprintersMen400meter.add(BorderLayout.NORTH, jPanel_SprintersMen400metertop);
        jPanel_SprintersMen400meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_400MeterMan));
        
        JPanel jPanel_SprintersMen110meterhurdlestop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMen110meterhurdles = new JPanel(new BorderLayout());
        jLabel_110MeterHorden = new JLabel();
        newLabelFont = new Font(jLabel_110MeterHorden.getFont().getName(), Font.BOLD, jLabel_110MeterHorden.getFont().getSize());
        jLabel_110MeterHorden.setFont(newLabelFont);
        jCombobox_110MeterHordenMan = new JComboBox();//new JLabel();
        jCombobox_110MeterHordenMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_110MeterHordenManActionPerformed(evt);
            }
        });
        jLabel_110MeterHordenManValue = new JLabel();
        jLabel_110MeterHordenManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMen110meterhurdlestop.add(BorderLayout.WEST, jLabel_110MeterHorden);
        jPanel_SprintersMen110meterhurdlestop.add(BorderLayout.EAST, jLabel_110MeterHordenManValue);
        jPanel_SprintersMen110meterhurdles.add(BorderLayout.NORTH, jPanel_SprintersMen110meterhurdlestop);
        jPanel_SprintersMen110meterhurdles.add(BorderLayout.CENTER, new JPanel().add(jCombobox_110MeterHordenMan));
        
        JPanel jPanel_SprintersMen400meterhurdlestop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMen400meterhurdles = new JPanel(new BorderLayout());
        jLabel_400MeterHorden = new JLabel();
        newLabelFont = new Font(jLabel_400MeterHorden.getFont().getName(), Font.BOLD, jLabel_400MeterHorden.getFont().getSize());
        jLabel_400MeterHorden.setFont(newLabelFont);
        jCombobox_400MeterHordenMan = new JComboBox();//new JLabel();
        jCombobox_400MeterHordenMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_400MeterHordenManActionPerformed(evt);
            }
        });
        jLabel_400MeterHordenManValue = new JLabel();
        jLabel_400MeterHordenManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMen400meterhurdlestop.add(BorderLayout.WEST, jLabel_400MeterHorden);
        jPanel_SprintersMen400meterhurdlestop.add(BorderLayout.EAST, jLabel_400MeterHordenManValue);
        jPanel_SprintersMen400meterhurdles.add(BorderLayout.NORTH, jPanel_SprintersMen400meterhurdlestop);
        jPanel_SprintersMen400meterhurdles.add(BorderLayout.CENTER, new JPanel().add(jCombobox_400MeterHordenMan));
        
        jPanel_SprintersMen.add(BorderLayout.NORTH, jPanel_SprintersMen100meter);
        jPanel_SprintersMenMiddle.add(BorderLayout.NORTH, jPanel_SprintersMen200meter);
        jPanel_SprintersMenMiddle.add(BorderLayout.CENTER, jPanel_SprintersMen400meter);
        jPanel_SprintersMenMiddle.add(BorderLayout.SOUTH, jPanel_SprintersMen110meterhurdles);
        jPanel_SprintersMen.add(BorderLayout.CENTER, jPanel_SprintersMenMiddle);
        jPanel_SprintersMen.add(BorderLayout.SOUTH, jPanel_SprintersMen400meterhurdles);
        
        jPanel_MiddleDistanceMen = new JPanel(new BorderLayout());
        //jPanel_MiddleDistanceMen.setLayout(new DialogLayout(20, 5));
        jPanel_MiddleDistanceMen.setPreferredSize(new Dimension(200, 77));
        
        
        JPanel jPanel_MiddleDistance800MeterManTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance800MeterMan = new JPanel(new BorderLayout());
        jLabel_800MeterMan = new JLabel();
        newLabelFont = new Font(jLabel_800MeterMan.getFont().getName(), Font.BOLD, jLabel_800MeterMan.getFont().getSize());
        jLabel_800MeterMan.setFont(newLabelFont);
        jCombobox_800MeterMan = new JComboBox();//new JLabel();
        jCombobox_800MeterMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_800MeterManActionPerformed(evt);
            }
        });
        jLabel_800MeterManValue = new JLabel();
        jLabel_800MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance800MeterManTop.add(BorderLayout.WEST, jLabel_800MeterMan);
        jPanel_MiddleDistance800MeterManTop.add(BorderLayout.EAST, jLabel_800MeterManValue);
        jPanel_MiddleDistance800MeterMan.add(BorderLayout.NORTH, jPanel_MiddleDistance800MeterManTop);
        jPanel_MiddleDistance800MeterMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_800MeterMan));
        
        JPanel jPanel_MiddleDistance1500MeterManTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance1500MeterMan = new JPanel(new BorderLayout());
        jLabel_1500MeterMan = new JLabel();
        newLabelFont = new Font(jLabel_1500MeterMan.getFont().getName(), Font.BOLD, jLabel_1500MeterMan.getFont().getSize());
        jLabel_1500MeterMan.setFont(newLabelFont);
        jCombobox_1500MeterMan = new JComboBox();//new JLabel();
        jCombobox_1500MeterMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_1500MeterManActionPerformed(evt);
            }
        });
        jLabel_1500MeterManValue = new JLabel();
        jLabel_1500MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance1500MeterManTop.add(BorderLayout.WEST, jLabel_1500MeterMan);
        jPanel_MiddleDistance1500MeterManTop.add(BorderLayout.EAST, jLabel_1500MeterManValue);
        jPanel_MiddleDistance1500MeterMan.add(BorderLayout.NORTH, jPanel_MiddleDistance1500MeterManTop);
        jPanel_MiddleDistance1500MeterMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_1500MeterMan));
        
        JPanel jPanel_MiddleDistance3000MeterManTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance3000MeterMan = new JPanel(new BorderLayout());
        jLabel_3000MeterMan = new JLabel();
        newLabelFont = new Font(jLabel_3000MeterMan.getFont().getName(), Font.BOLD, jLabel_3000MeterMan.getFont().getSize());
        jLabel_3000MeterMan.setFont(newLabelFont);
        jCombobox_3000MeterMan = new JComboBox();//new JLabel();
        jCombobox_3000MeterMan.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_3000MeterManActionPerformed(evt);
            }
        });
        jLabel_3000MeterManValue = new JLabel();
        jLabel_3000MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance3000MeterManTop.add(BorderLayout.WEST, jLabel_3000MeterMan);
        jPanel_MiddleDistance3000MeterManTop.add(BorderLayout.EAST, jLabel_3000MeterManValue);
        jPanel_MiddleDistance3000MeterMan.add(BorderLayout.NORTH, jPanel_MiddleDistance3000MeterManTop);
        jPanel_MiddleDistance3000MeterMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_3000MeterMan));
        
        jPanel_MiddleDistanceMen.add(BorderLayout.NORTH, jPanel_MiddleDistance800MeterMan);
        jPanel_MiddleDistanceMen.add(BorderLayout.CENTER, jPanel_MiddleDistance1500MeterMan);
        jPanel_MiddleDistanceMen.add(BorderLayout.SOUTH, jPanel_MiddleDistance3000MeterMan);


        jPanel_LongDistanceMen = new JPanel(new BorderLayout());
      //  jPanel_LongDistanceMen.setLayout(new DialogLayout(20, 5));
        jPanel_LongDistanceMen.setPreferredSize(new Dimension(200, 128));
        
        JPanel jPanel_LongDistance5000MeterManTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistance5000MeterMan = new JPanel(new BorderLayout());
        jLabel_5000MeterMan = new JLabel();
        newLabelFont = new Font(jLabel_5000MeterMan.getFont().getName(), Font.BOLD, jLabel_5000MeterMan.getFont().getSize());
        jLabel_5000MeterMan.setFont(newLabelFont);
        jCombobox_5000MeterMan = new JComboBox();//new JLabel();
        jCombobox_5000MeterMan.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_5000MeterManActionPerformed(evt);
                }
                        });
        jLabel_5000MeterManValue = new JLabel();
        jLabel_5000MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistance5000MeterManTop.add(BorderLayout.WEST, jLabel_5000MeterMan);
        jPanel_LongDistance5000MeterManTop.add(BorderLayout.EAST, jLabel_5000MeterManValue);
        jPanel_LongDistance5000MeterMan.add(BorderLayout.NORTH, jPanel_LongDistance5000MeterManTop);
        jPanel_LongDistance5000MeterMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_5000MeterMan));
        
        JPanel jPanel_LongDistance10000MeterManTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistance10000MeterMan = new JPanel(new BorderLayout());
        jLabel_10000MeterMan = new JLabel();
        newLabelFont = new Font(jLabel_10000MeterMan.getFont().getName(), Font.BOLD, jLabel_10000MeterMan.getFont().getSize());
        jLabel_10000MeterMan.setFont(newLabelFont);
        jCombobox_10000MeterMan = new JComboBox();//new JLabel();
        jCombobox_10000MeterMan.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_10000MeterManActionPerformed(evt);
                }
                        });
        jLabel_10000MeterManValue = new JLabel();
        jLabel_10000MeterManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistance10000MeterManTop.add(BorderLayout.WEST, jLabel_10000MeterMan);
        jPanel_LongDistance10000MeterManTop.add(BorderLayout.EAST, jLabel_10000MeterManValue);
        jPanel_LongDistance10000MeterMan.add(BorderLayout.NORTH, jPanel_LongDistance10000MeterManTop);
        jPanel_LongDistance10000MeterMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_10000MeterMan));
        
        JPanel jPanel_LongDistanceMarathonManTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistanceMarathonMan = new JPanel(new BorderLayout());
        jLabel_MarathonMan = new JLabel();
        newLabelFont = new Font(jLabel_MarathonMan.getFont().getName(), Font.BOLD, jLabel_MarathonMan.getFont().getSize());
        jLabel_MarathonMan.setFont(newLabelFont);
        jCombobox_MarathonMan = new JComboBox();//new JLabel();
        jCombobox_MarathonMan.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_MarathonManActionPerformed(evt);
                }
                        });
        jLabel_MarathonManValue = new JLabel();
        jLabel_MarathonManValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistanceMarathonManTop.add(BorderLayout.WEST, jLabel_MarathonMan);
        jPanel_LongDistanceMarathonManTop.add(BorderLayout.EAST, jLabel_MarathonManValue);
        jPanel_LongDistanceMarathonMan.add(BorderLayout.NORTH, jPanel_LongDistanceMarathonManTop);
        jPanel_LongDistanceMarathonMan.add(BorderLayout.CENTER, new JPanel().add(jCombobox_MarathonMan));
        
        jPanel_LongDistanceMen.add(BorderLayout.NORTH, jPanel_LongDistance5000MeterMan);
        jPanel_LongDistanceMen.add(BorderLayout.CENTER, jPanel_LongDistance10000MeterMan);
        jPanel_LongDistanceMen.add(BorderLayout.SOUTH, jPanel_LongDistanceMarathonMan);
        

        //Create Center Panel
        JPanel p1 = new JPanel(new BorderLayout());
        p1.add(BorderLayout.NORTH, jPanel_SprintersMen);
        p1.add(BorderLayout.CENTER, jPanel_MiddleDistanceMen);
        p1.add(BorderLayout.SOUTH, jPanel_LongDistanceMen);

        jPanel_SprintersWomen = new JPanel(new BorderLayout());
        jPanel_SprintersWomen.setPreferredSize(new Dimension(200, 197));
        jPanel_SprintersWomenMiddle = new JPanel(new BorderLayout());
        
        JPanel jPanel_SprintersWomen100metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomen100meter = new JPanel(new BorderLayout());  
        jLabel_100MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_100MeterWomen.getFont().getName(), Font.BOLD, jLabel_100MeterWomen.getFont().getSize());
        jLabel_100MeterWomen.setFont(newLabelFont);
        jCombobox_100MeterWomen = new JComboBox();//new JLabel();44
        jCombobox_100MeterWomen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_100MeterWomenActionPerformed(evt);
            }
        });
        jLabel_100MeterWomenValue = new JLabel();
        jLabel_100MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomen100metertop.add(BorderLayout.WEST, jLabel_100MeterWomen);
        jPanel_SprintersWomen100metertop.add(BorderLayout.EAST, jLabel_100MeterWomenValue);
        jPanel_SprintersWomen100meter.add(BorderLayout.NORTH, jPanel_SprintersWomen100metertop);
        jPanel_SprintersWomen100meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_100MeterWomen));
       
        JPanel jPanel_SprintersWomen200metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomen200meter = new JPanel(new BorderLayout());  
        jLabel_200MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_200MeterWomen.getFont().getName(), Font.BOLD, jLabel_200MeterWomen.getFont().getSize());
        jLabel_200MeterWomen.setFont(newLabelFont);
        jCombobox_200MeterWomen = new JComboBox();//new JLabel();
        jCombobox_200MeterWomen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_200MeterWomenActionPerformed(evt);
            }
        });
        jLabel_200MeterWomenValue = new JLabel();
        jLabel_200MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomen200metertop.add(BorderLayout.WEST, jLabel_200MeterWomen);
        jPanel_SprintersWomen200metertop.add(BorderLayout.EAST, jLabel_200MeterWomenValue);
        jPanel_SprintersWomen200meter.add(BorderLayout.NORTH, jPanel_SprintersWomen200metertop);
        jPanel_SprintersWomen200meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_200MeterWomen));
        
        JPanel jPanel_SprintersWomen400metertop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomen400meter = new JPanel(new BorderLayout());  
        jLabel_400MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_400MeterWomen.getFont().getName(), Font.BOLD, jLabel_400MeterWomen.getFont().getSize());
        jLabel_400MeterWomen.setFont(newLabelFont);
        jCombobox_400MeterWomen = new JComboBox();//new JLabel();
        jCombobox_400MeterWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_400MeterWomenActionPerformed(evt);
            }
        });
        jLabel_400MeterWomenValue = new JLabel();
        jLabel_400MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomen400metertop.add(BorderLayout.WEST, jLabel_400MeterWomen);
        jPanel_SprintersWomen400metertop.add(BorderLayout.EAST, jLabel_400MeterWomenValue);
        jPanel_SprintersWomen400meter.add(BorderLayout.NORTH, jPanel_SprintersWomen400metertop);
        jPanel_SprintersWomen400meter.add(BorderLayout.CENTER, new JPanel().add(jCombobox_400MeterWomen));
        
        JPanel jPanel_SprintersWomen100meterhurdlestop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomen100meterhurdles = new JPanel(new BorderLayout());
        jLabel_100MeterHordenWomen = new JLabel();
        newLabelFont = new Font(jLabel_100MeterHordenWomen.getFont().getName(), Font.BOLD, jLabel_100MeterHordenWomen.getFont().getSize());
        jLabel_100MeterHordenWomen.setFont(newLabelFont);
        jCombobox_100MeterHordenWomen = new JComboBox();//new JLabel();
        jCombobox_100MeterHordenWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_100MeterHordenWomenActionPerformed(evt);
            }
        });
        jLabel_100MeterHordenWomenValue = new JLabel();
        jLabel_100MeterHordenWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomen100meterhurdlestop.add(BorderLayout.WEST, jLabel_100MeterHordenWomen);
        jPanel_SprintersWomen100meterhurdlestop.add(BorderLayout.EAST, jLabel_100MeterHordenWomenValue);
        jPanel_SprintersWomen100meterhurdles.add(BorderLayout.NORTH, jPanel_SprintersWomen100meterhurdlestop);
        jPanel_SprintersWomen100meterhurdles.add(BorderLayout.CENTER, new JPanel().add(jCombobox_100MeterHordenWomen));
        
        JPanel jPanel_SprintersWomen400meterhurdlestop = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomen400meterhurdles = new JPanel(new BorderLayout());
        jLabel_400MeterHordenWomen = new JLabel();
        newLabelFont = new Font(jLabel_400MeterHordenWomen.getFont().getName(), Font.BOLD, jLabel_400MeterHordenWomen.getFont().getSize());
        jLabel_400MeterHordenWomen.setFont(newLabelFont);
        jCombobox_400MeterHordenWomen = new JComboBox();//new JLabel();
        jCombobox_400MeterHordenWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_400MeterHordenWomenActionPerformed(evt);
            }
        });
        jLabel_400MeterHordenWomenValue = new JLabel();
        jLabel_400MeterHordenWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomen400meterhurdlestop.add(BorderLayout.WEST, jLabel_400MeterHordenWomen);
        jPanel_SprintersWomen400meterhurdlestop.add(BorderLayout.EAST, jLabel_400MeterHordenWomenValue);
        jPanel_SprintersWomen400meterhurdles.add(BorderLayout.NORTH, jPanel_SprintersWomen400meterhurdlestop);
        jPanel_SprintersWomen400meterhurdles.add(BorderLayout.CENTER, new JPanel().add(jCombobox_400MeterHordenWomen));
        
        jPanel_SprintersWomen.add(BorderLayout.NORTH, jPanel_SprintersWomen100meter);
        jPanel_SprintersWomenMiddle.add(BorderLayout.NORTH, jPanel_SprintersWomen200meter);
        jPanel_SprintersWomenMiddle.add(BorderLayout.CENTER, jPanel_SprintersWomen400meter);
        jPanel_SprintersWomenMiddle.add(BorderLayout.SOUTH, jPanel_SprintersWomen100meterhurdles);
        jPanel_SprintersWomen.add(BorderLayout.CENTER, jPanel_SprintersWomenMiddle);
        jPanel_SprintersWomen.add(BorderLayout.SOUTH, jPanel_SprintersWomen400meterhurdles);
        
        jPanel_MiddleDistanceWomen = new JPanel(new BorderLayout());
        //jPanel_MiddleDistanceWomen.setLayout(new DialogLayout(20, 5));
        jPanel_MiddleDistanceWomen.setPreferredSize(new Dimension(200, 77));
        
        
        JPanel jPanel_MiddleDistance800MeterWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance800MeterWomen = new JPanel(new BorderLayout());
        jLabel_800MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_800MeterWomen.getFont().getName(), Font.BOLD, jLabel_800MeterWomen.getFont().getSize());
        jLabel_800MeterWomen.setFont(newLabelFont);
        jCombobox_800MeterWomen = new JComboBox();//new JLabel();
        jCombobox_800MeterWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_800MeterWomenActionPerformed(evt);
            }
        });
        jLabel_800MeterWomenValue = new JLabel();
        jLabel_800MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance800MeterWomenTop.add(BorderLayout.WEST, jLabel_800MeterWomen);
        jPanel_MiddleDistance800MeterWomenTop.add(BorderLayout.EAST, jLabel_800MeterWomenValue);
        jPanel_MiddleDistance800MeterWomen.add(BorderLayout.NORTH, jPanel_MiddleDistance800MeterWomenTop);
        jPanel_MiddleDistance800MeterWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_800MeterWomen));
        
        JPanel jPanel_MiddleDistance1500MeterWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance1500MeterWomen = new JPanel(new BorderLayout());
        jLabel_1500MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_1500MeterWomen.getFont().getName(), Font.BOLD, jLabel_1500MeterWomen.getFont().getSize());
        jLabel_1500MeterWomen.setFont(newLabelFont);
        jCombobox_1500MeterWomen = new JComboBox();//new JLabel();
        jCombobox_1500MeterWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_1500MeterWomenActionPerformed(evt);
            }
        });
        jLabel_1500MeterWomenValue = new JLabel();
        jLabel_1500MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance1500MeterWomenTop.add(BorderLayout.WEST, jLabel_1500MeterWomen);
        jPanel_MiddleDistance1500MeterWomenTop.add(BorderLayout.EAST, jLabel_1500MeterWomenValue);
        jPanel_MiddleDistance1500MeterWomen.add(BorderLayout.NORTH, jPanel_MiddleDistance1500MeterWomenTop);
        jPanel_MiddleDistance1500MeterWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_1500MeterWomen));
        
        JPanel jPanel_MiddleDistance3000MeterWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_MiddleDistance3000MeterWomen = new JPanel(new BorderLayout());
        jLabel_3000MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_3000MeterWomen.getFont().getName(), Font.BOLD, jLabel_3000MeterWomen.getFont().getSize());
        jLabel_3000MeterWomen.setFont(newLabelFont);
        jCombobox_3000MeterWomen = new JComboBox();//new JLabel();
        jCombobox_3000MeterWomen.addActionListener(new java.awt.event.ActionListener() {

            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCombobox_3000MeterWomenActionPerformed(evt);
            }
        });
        jLabel_3000MeterWomenValue = new JLabel();
        jLabel_3000MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistance3000MeterWomenTop.add(BorderLayout.WEST, jLabel_3000MeterWomen);
        jPanel_MiddleDistance3000MeterWomenTop.add(BorderLayout.EAST, jLabel_3000MeterWomenValue);
        jPanel_MiddleDistance3000MeterWomen.add(BorderLayout.NORTH, jPanel_MiddleDistance3000MeterWomenTop);
        jPanel_MiddleDistance3000MeterWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_3000MeterWomen));
        
        jPanel_MiddleDistanceWomen.add(BorderLayout.NORTH, jPanel_MiddleDistance800MeterWomen);
        jPanel_MiddleDistanceWomen.add(BorderLayout.CENTER, jPanel_MiddleDistance1500MeterWomen);
        jPanel_MiddleDistanceWomen.add(BorderLayout.SOUTH, jPanel_MiddleDistance3000MeterWomen);

        jPanel_LongDistanceWomen = new JPanel(new BorderLayout());
      //  jPanel_LongDistanceWomen.setLayout(new DialogLayout(20, 5));
        jPanel_LongDistanceWomen.setPreferredSize(new Dimension(200, 128));
        
        JPanel jPanel_LongDistance5000MeterWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistance5000MeterWomen = new JPanel(new BorderLayout());
        jLabel_5000MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_5000MeterWomen.getFont().getName(), Font.BOLD, jLabel_5000MeterWomen.getFont().getSize());
        jLabel_5000MeterWomen.setFont(newLabelFont);
        jCombobox_5000MeterWomen = new JComboBox();//new JLabel();
        jCombobox_5000MeterWomen.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_5000MeterWomenActionPerformed(evt);
                }
                        });
        jLabel_5000MeterWomenValue = new JLabel();
        jLabel_5000MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistance5000MeterWomenTop.add(BorderLayout.WEST, jLabel_5000MeterWomen);
        jPanel_LongDistance5000MeterWomenTop.add(BorderLayout.EAST, jLabel_5000MeterWomenValue);
        jPanel_LongDistance5000MeterWomen.add(BorderLayout.NORTH, jPanel_LongDistance5000MeterWomenTop);
        jPanel_LongDistance5000MeterWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_5000MeterWomen));
        
        JPanel jPanel_LongDistance10000MeterWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistance10000MeterWomen = new JPanel(new BorderLayout());
        jLabel_10000MeterWomen = new JLabel();
        newLabelFont = new Font(jLabel_10000MeterWomen.getFont().getName(), Font.BOLD, jLabel_10000MeterWomen.getFont().getSize());
        jLabel_10000MeterWomen.setFont(newLabelFont);
        jCombobox_10000MeterWomen = new JComboBox();//new JLabel();
        jCombobox_10000MeterWomen.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_10000MeterWomenActionPerformed(evt);
                }
                        });
        jLabel_10000MeterWomenValue = new JLabel();
        jLabel_10000MeterWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistance10000MeterWomenTop.add(BorderLayout.WEST, jLabel_10000MeterWomen);
        jPanel_LongDistance10000MeterWomenTop.add(BorderLayout.EAST, jLabel_10000MeterWomenValue);
        jPanel_LongDistance10000MeterWomen.add(BorderLayout.NORTH, jPanel_LongDistance10000MeterWomenTop);
        jPanel_LongDistance10000MeterWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_10000MeterWomen));
        
        JPanel jPanel_LongDistanceMarathonWomenTop = new JPanel(new BorderLayout());
        JPanel jPanel_LongDistanceMarathonWomen = new JPanel(new BorderLayout());
        jLabel_MarathonWomen = new JLabel();
        newLabelFont = new Font(jLabel_MarathonWomen.getFont().getName(), Font.BOLD, jLabel_MarathonWomen.getFont().getSize());
        jLabel_MarathonWomen.setFont(newLabelFont);
        jCombobox_MarathonWomen = new JComboBox();//new JLabel();
        jCombobox_MarathonWomen.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jCombobox_MarathonWomenActionPerformed(evt);
                }
                        });
        jLabel_MarathonWomenValue = new JLabel();
        jLabel_MarathonWomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistanceMarathonWomenTop.add(BorderLayout.WEST, jLabel_MarathonWomen);
        jPanel_LongDistanceMarathonWomenTop.add(BorderLayout.EAST, jLabel_MarathonWomenValue);
        jPanel_LongDistanceMarathonWomen.add(BorderLayout.NORTH, jPanel_LongDistanceMarathonWomenTop);
        jPanel_LongDistanceMarathonWomen.add(BorderLayout.CENTER, new JPanel().add(jCombobox_MarathonWomen));
        
        jPanel_LongDistanceWomen.add(BorderLayout.NORTH, jPanel_LongDistance5000MeterWomen);
        jPanel_LongDistanceWomen.add(BorderLayout.CENTER, jPanel_LongDistance10000MeterWomen);
        jPanel_LongDistanceWomen.add(BorderLayout.SOUTH, jPanel_LongDistanceMarathonWomen);
        //Create Center Panel
        JPanel p2 = new JPanel(new BorderLayout());
        p2.add(BorderLayout.NORTH, jPanel_SprintersWomen);
        p2.add(BorderLayout.CENTER, jPanel_MiddleDistanceWomen);
        p2.add(BorderLayout.SOUTH, jPanel_LongDistanceWomen);

        jPanel_RaceWalkersMen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_RaceWalkersMen.setLayout(new DialogLayout(20, 5));
        jPanel_RaceWalkersMen.setPreferredSize(new Dimension(200, 140));
        jLabel_10KM = new JLabel();
        newLabelFont = new Font(jLabel_10KM.getFont().getName(), Font.BOLD, jLabel_10KM.getFont().getSize());
        jLabel_10KM.setFont(newLabelFont);
        jLabel_10KMMan = new JLabel();
        jLabel_10KMManValue = new JLabel();
        jPanel_RaceWalkersMen.add(jLabel_10KM);
        jPanel_RaceWalkersMen.add(new JLabel(" "));
        jPanel_RaceWalkersMen.add(jLabel_10KMMan);
        jPanel_RaceWalkersMen.add(jLabel_10KMManValue);
        jLabel_20KM = new JLabel();
        newLabelFont = new Font(jLabel_20KM.getFont().getName(), Font.BOLD, jLabel_20KM.getFont().getSize());
        jLabel_20KM.setFont(newLabelFont);
        jLabel_20KMMan = new JLabel();
        jLabel_20KMManValue = new JLabel();
        jPanel_RaceWalkersMen.add(jLabel_20KM);
        jPanel_RaceWalkersMen.add(new JLabel(" "));
        jPanel_RaceWalkersMen.add(jLabel_20KMMan);
        jPanel_RaceWalkersMen.add(jLabel_20KMManValue);
        jLabel_50KM = new JLabel();
        newLabelFont = new Font(jLabel_50KM.getFont().getName(), Font.BOLD, jLabel_50KM.getFont().getSize());
        jLabel_50KM.setFont(newLabelFont);
        jLabel_50KMMan = new JLabel();
        jLabel_50KMManValue = new JLabel();
        jPanel_RaceWalkersMen.add(jLabel_50KM);
        jPanel_RaceWalkersMen.add(new JLabel(" "));
        jPanel_RaceWalkersMen.add(jLabel_50KMMan);
        jPanel_RaceWalkersMen.add(jLabel_50KMManValue);

        jPanel_JumpersMen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_JumpersMen.setLayout(new DialogLayout(20, 5));
        jPanel_JumpersMen.setPreferredSize(new Dimension(200, 180));
        jLabel_Highjump = new JLabel();
        newLabelFont = new Font(jLabel_Highjump.getFont().getName(), Font.BOLD, jLabel_Highjump.getFont().getSize());
        jLabel_Highjump.setFont(newLabelFont);
        jLabel_HighjumpMan = new JLabel();
        jLabel_HighjumpManValue = new JLabel();
        jPanel_JumpersMen.add(jLabel_Highjump);
        jPanel_JumpersMen.add(new JLabel(" "));
        jPanel_JumpersMen.add(jLabel_HighjumpMan);
        jPanel_JumpersMen.add(jLabel_HighjumpManValue);
        jLabel_Polevault = new JLabel();
        newLabelFont = new Font(jLabel_Polevault.getFont().getName(), Font.BOLD, jLabel_Polevault.getFont().getSize());
        jLabel_Polevault.setFont(newLabelFont);
        jLabel_PolevaultMan = new JLabel();
        jLabel_PolevaultManValue = new JLabel();
        jPanel_JumpersMen.add(jLabel_Polevault);
        jPanel_JumpersMen.add(new JLabel(" "));
        jPanel_JumpersMen.add(jLabel_PolevaultMan);
        jPanel_JumpersMen.add(jLabel_PolevaultManValue);
        jLabel_Longjump = new JLabel();
        newLabelFont = new Font(jLabel_Longjump.getFont().getName(), Font.BOLD, jLabel_Longjump.getFont().getSize());
        jLabel_Longjump.setFont(newLabelFont);
        jLabel_LongjumpMan = new JLabel();
        jLabel_LongjumpManValue = new JLabel();
        jPanel_JumpersMen.add(jLabel_Longjump);
        jPanel_JumpersMen.add(new JLabel(" "));
        jPanel_JumpersMen.add(jLabel_LongjumpMan);
        jPanel_JumpersMen.add(jLabel_LongjumpManValue);
        jLabel_Triplejump = new JLabel();
        newLabelFont = new Font(jLabel_Triplejump.getFont().getName(), Font.BOLD, jLabel_Triplejump.getFont().getSize());
        jLabel_Triplejump.setFont(newLabelFont);
        jLabel_TriplejumpMan = new JLabel();
        jLabel_TriplejumpManValue = new JLabel();
        jPanel_JumpersMen.add(jLabel_Triplejump);
        jPanel_JumpersMen.add(new JLabel(" "));
        jPanel_JumpersMen.add(jLabel_TriplejumpMan);
        jPanel_JumpersMen.add(jLabel_TriplejumpManValue);

        jPanel_ThrowersMen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_ThrowersMen.setLayout(new DialogLayout(20, 5));
        jPanel_ThrowersMen.setPreferredSize(new Dimension(200, 180));
        jLabel_Shotput = new JLabel();
        newLabelFont = new Font(jLabel_Shotput.getFont().getName(), Font.BOLD, jLabel_Shotput.getFont().getSize());
        jLabel_Shotput.setFont(newLabelFont);
        jLabel_ShotputMan = new JLabel();
        jLabel_ShotputManValue = new JLabel();
        jPanel_ThrowersMen.add(jLabel_Shotput);
        jPanel_ThrowersMen.add(new JLabel(" "));
        jPanel_ThrowersMen.add(jLabel_ShotputMan);
        jPanel_ThrowersMen.add(jLabel_ShotputManValue);
        jLabel_Discusthrow = new JLabel();
        newLabelFont = new Font(jLabel_Discusthrow.getFont().getName(), Font.BOLD, jLabel_Discusthrow.getFont().getSize());
        jLabel_Discusthrow.setFont(newLabelFont);
        jLabel_DiscusthrowMan = new JLabel();
        jLabel_DiscusthrowManValue = new JLabel();
        jPanel_ThrowersMen.add(jLabel_Discusthrow);
        jPanel_ThrowersMen.add(new JLabel(" "));
        jPanel_ThrowersMen.add(jLabel_DiscusthrowMan);
        jPanel_ThrowersMen.add(jLabel_DiscusthrowManValue);
        jLabel_Hammerthrow = new JLabel();
        newLabelFont = new Font(jLabel_Hammerthrow.getFont().getName(), Font.BOLD, jLabel_Hammerthrow.getFont().getSize());
        jLabel_Hammerthrow.setFont(newLabelFont);
        jLabel_HammerthrowMan = new JLabel();
        jLabel_HammerthrowManValue = new JLabel();
        jPanel_ThrowersMen.add(jLabel_Hammerthrow);
        jPanel_ThrowersMen.add(new JLabel(" "));
        jPanel_ThrowersMen.add(jLabel_HammerthrowMan);
        jPanel_ThrowersMen.add(jLabel_HammerthrowManValue);
        jLabel_Javelinthrow = new JLabel();
        newLabelFont = new Font(jLabel_Javelinthrow.getFont().getName(), Font.BOLD, jLabel_Javelinthrow.getFont().getSize());
        jLabel_Javelinthrow.setFont(newLabelFont);
        jLabel_JavelinthrowMan = new JLabel();
        jLabel_JavelinthrowManValue = new JLabel();
        jPanel_ThrowersMen.add(jLabel_Javelinthrow);
        jPanel_ThrowersMen.add(new JLabel(" "));
        jPanel_ThrowersMen.add(jLabel_JavelinthrowMan);
        jPanel_ThrowersMen.add(jLabel_JavelinthrowManValue);
        //Create Center Panel
        JPanel p3 = new JPanel(new BorderLayout());
        p3.add(BorderLayout.NORTH, jPanel_RaceWalkersMen);
        p3.add(BorderLayout.CENTER, jPanel_JumpersMen);
        p3.add(BorderLayout.SOUTH, jPanel_ThrowersMen);

        jPanel_RaceWalkersWomen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_RaceWalkersWomen.setLayout(new DialogLayout(20, 5));
        jPanel_RaceWalkersWomen.setPreferredSize(new Dimension(200, 140));
        jLabel_10KM2 = new JLabel();
        newLabelFont = new Font(jLabel_10KM2.getFont().getName(), Font.BOLD, jLabel_10KM2.getFont().getSize());
        jLabel_10KM2.setFont(newLabelFont);
        jLabel_10KMWomen = new JLabel();
        jLabel_10KMWomenValue = new JLabel();
        jPanel_RaceWalkersWomen.add(jLabel_10KM2);
        jPanel_RaceWalkersWomen.add(new JLabel(" "));
        jPanel_RaceWalkersWomen.add(jLabel_10KMWomen);
        jPanel_RaceWalkersWomen.add(jLabel_10KMWomenValue);
        jLabel_20KM2 = new JLabel();
        newLabelFont = new Font(jLabel_20KM2.getFont().getName(), Font.BOLD, jLabel_20KM2.getFont().getSize());
        jLabel_20KM2.setFont(newLabelFont);
        jLabel_20KMVrouw = new JLabel();
        jLabel_20KMVrouwValue = new JLabel();
        jPanel_RaceWalkersWomen.add(jLabel_20KM2);
        jPanel_RaceWalkersWomen.add(new JLabel(" "));
        jPanel_RaceWalkersWomen.add(jLabel_20KMVrouw);
        jPanel_RaceWalkersWomen.add(jLabel_20KMVrouwValue);
        jLabel_50KM2 = new JLabel();
        newLabelFont = new Font(jLabel_50KM2.getFont().getName(), Font.BOLD, jLabel_50KM2.getFont().getSize());
        jLabel_50KM2.setFont(newLabelFont);
        jLabel_50KMVrouw = new JLabel();
        jLabel_50KMVrouwValue = new JLabel();
        jPanel_RaceWalkersWomen.add(jLabel_50KM2);
        jPanel_RaceWalkersWomen.add(new JLabel(" "));
        jPanel_RaceWalkersWomen.add(jLabel_50KMVrouw);
        jPanel_RaceWalkersWomen.add(jLabel_50KMVrouwValue);

        jPanel_JumpersWomen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_JumpersWomen.setLayout(new DialogLayout(20, 5));
        jPanel_JumpersWomen.setPreferredSize(new Dimension(200, 180));
        jLabel_Highjump2 = new JLabel();
        newLabelFont = new Font(jLabel_Highjump2.getFont().getName(), Font.BOLD, jLabel_Highjump2.getFont().getSize());
        jLabel_Highjump2.setFont(newLabelFont);
        jLabel_HighjumpWomen = new JLabel();
        jLabel_HighjumpWomenValue = new JLabel();
        jPanel_JumpersWomen.add(jLabel_Highjump2);
        jPanel_JumpersWomen.add(new JLabel(" "));
        jPanel_JumpersWomen.add(jLabel_HighjumpWomen);
        jPanel_JumpersWomen.add(jLabel_HighjumpWomenValue);
        jLabel_Polevault2 = new JLabel();
        newLabelFont = new Font(jLabel_Polevault2.getFont().getName(), Font.BOLD, jLabel_Polevault2.getFont().getSize());
        jLabel_Polevault2.setFont(newLabelFont);
        jLabel_PolevaultVrouw = new JLabel();
        jLabel_PolevaultVrouwValue = new JLabel();
        jPanel_JumpersWomen.add(jLabel_Polevault2);
        jPanel_JumpersWomen.add(new JLabel(" "));
        jPanel_JumpersWomen.add(jLabel_PolevaultVrouw);
        jPanel_JumpersWomen.add(jLabel_PolevaultVrouwValue);
        jLabel_Longjump2 = new JLabel();
        newLabelFont = new Font(jLabel_Longjump2.getFont().getName(), Font.BOLD, jLabel_Longjump2.getFont().getSize());
        jLabel_Longjump2.setFont(newLabelFont);
        jLabel_LongjumpVrouw = new JLabel();
        jLabel_LongjumpVrouwValue = new JLabel();
        jPanel_JumpersWomen.add(jLabel_Longjump2);
        jPanel_JumpersWomen.add(new JLabel(" "));
        jPanel_JumpersWomen.add(jLabel_LongjumpVrouw);
        jPanel_JumpersWomen.add(jLabel_LongjumpVrouwValue);
        jLabel_Triplejump2 = new JLabel();
        newLabelFont = new Font(jLabel_Triplejump2.getFont().getName(), Font.BOLD, jLabel_Triplejump2.getFont().getSize());
        jLabel_Triplejump2.setFont(newLabelFont);
        jLabel_TriplejumpVrouw = new JLabel();
        jLabel_TriplejumpVrouwValue = new JLabel();
        jPanel_JumpersWomen.add(jLabel_Triplejump2);
        jPanel_JumpersWomen.add(new JLabel(" "));
        jPanel_JumpersWomen.add(jLabel_TriplejumpVrouw);
        jPanel_JumpersWomen.add(jLabel_TriplejumpVrouwValue);

        jPanel_ThrowersWomen = new JPanel(new GridLayout(0,2,20,5));
//        jPanel_ThrowersWomen.setLayout(new DialogLayout(20, 5));
        jPanel_ThrowersWomen.setPreferredSize(new Dimension(200, 180));
        jLabel_Shotput2 = new JLabel();
        newLabelFont = new Font(jLabel_Shotput2.getFont().getName(), Font.BOLD, jLabel_Shotput2.getFont().getSize());
        jLabel_Shotput2.setFont(newLabelFont);
        jLabel_ShotputWomen = new JLabel();
        jLabel_ShotputWomenValue = new JLabel();
        jPanel_ThrowersWomen.add(jLabel_Shotput2);
        jPanel_ThrowersWomen.add(new JLabel(" "));
        jPanel_ThrowersWomen.add(jLabel_ShotputWomen);
        jPanel_ThrowersWomen.add(jLabel_ShotputWomenValue);
        jLabel_Discusthrow2 = new JLabel();
        newLabelFont = new Font(jLabel_Discusthrow2.getFont().getName(), Font.BOLD, jLabel_Discusthrow2.getFont().getSize());
        jLabel_Discusthrow2.setFont(newLabelFont);
        jLabel_DiscusthrowVrouw = new JLabel();
        jLabel_DiscusthrowVrouwValue = new JLabel();
        jPanel_ThrowersWomen.add(jLabel_Discusthrow2);
        jPanel_ThrowersWomen.add(new JLabel(" "));
        jPanel_ThrowersWomen.add(jLabel_DiscusthrowVrouw);
        jPanel_ThrowersWomen.add(jLabel_DiscusthrowVrouwValue);
        jLabel_Hammerthrow2 = new JLabel();
        newLabelFont = new Font(jLabel_Hammerthrow2.getFont().getName(), Font.BOLD, jLabel_Hammerthrow2.getFont().getSize());
        jLabel_Hammerthrow2.setFont(newLabelFont);
        jLabel_HammerthrowVrouw = new JLabel();
        jLabel_HammerthrowVrouwValue = new JLabel();
        jPanel_ThrowersWomen.add(jLabel_Hammerthrow2);
        jPanel_ThrowersWomen.add(new JLabel(" "));
        jPanel_ThrowersWomen.add(jLabel_HammerthrowVrouw);
        jPanel_ThrowersWomen.add(jLabel_HammerthrowVrouwValue);
        jLabel_Javelinthrow2 = new JLabel();
        newLabelFont = new Font(jLabel_Javelinthrow2.getFont().getName(), Font.BOLD, jLabel_Javelinthrow2.getFont().getSize());
        jLabel_Javelinthrow2.setFont(newLabelFont);
        jLabel_JavelinthrowVrouw = new JLabel();
        jLabel_JavelinthrowVrouwValue = new JLabel();
        jPanel_ThrowersWomen.add(jLabel_Javelinthrow2);
        jPanel_ThrowersWomen.add(new JLabel(" "));
        jPanel_ThrowersWomen.add(jLabel_JavelinthrowVrouw);
        jPanel_ThrowersWomen.add(jLabel_JavelinthrowVrouwValue);

        //Create Center Panel
        JPanel p4 = new JPanel(new BorderLayout());
        p4.add(BorderLayout.NORTH, jPanel_RaceWalkersWomen);
        p4.add(BorderLayout.CENTER, jPanel_JumpersWomen);
        p4.add(BorderLayout.SOUTH, jPanel_ThrowersWomen);

        jPanel_Relays = new JPanel(new BorderLayout());
        jPanel_Relays.setPreferredSize(new Dimension(200, 150));
        JPanel jPanel_RelaysTop = new JPanel(new BorderLayout());
        JPanel jPanel_RelaysDown = new JPanel(new BorderLayout());
        JPanel jPanel_Relays4x100MenValue = new JPanel(new BorderLayout());
        jLabel_Relays4x100Men = new JLabel();
        jLabel_Relays4x100Men.setText("Relays4x100Men");
        jLabel_Relays4x100MenValue = new JLabel();
        jLabel_Relays4x100MenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_Relays4x100MenValue.add(BorderLayout.WEST, jLabel_Relays4x100Men);
        jPanel_Relays4x100MenValue.add(BorderLayout.EAST, jLabel_Relays4x100MenValue);
        jPanel_RelaysTop.add(BorderLayout.NORTH, jPanel_Relays4x100MenValue);
        JPanel jPanel_Relays4x100WomenValue = new JPanel(new BorderLayout());
        jLabel_Relays4x100Women = new JLabel();
        jLabel_Relays4x100Women.setText("Relays4x100Women");
        jLabel_Relays4x100WomenValue = new JLabel();
        jLabel_Relays4x100WomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_Relays4x100WomenValue.add(BorderLayout.WEST, jLabel_Relays4x100Women);
        jPanel_Relays4x100WomenValue.add(BorderLayout.EAST, jLabel_Relays4x100WomenValue);
        jPanel_RelaysTop.add(BorderLayout.CENTER, jPanel_Relays4x100WomenValue);
        JPanel jPanel_Relays4x400MenValue = new JPanel(new BorderLayout());
        jLabel_Relays4x400Men = new JLabel();
        jLabel_Relays4x400Men.setText("Relays4x400Men");
        jLabel_Relays4x400MenValue = new JLabel();
        jLabel_Relays4x400MenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_Relays4x400MenValue.add(BorderLayout.WEST, jLabel_Relays4x400Men);
        jPanel_Relays4x400MenValue.add(BorderLayout.EAST, jLabel_Relays4x400MenValue);
        jPanel_RelaysDown.add(BorderLayout.NORTH, jPanel_Relays4x400MenValue);
        JPanel jPanel_Relays4x400WomenValue = new JPanel(new BorderLayout());
        jLabel_Relays4x400Women = new JLabel();
        jLabel_Relays4x400Women.setText("Relays4x400Women");
        jLabel_Relays4x400WomenValue = new JLabel();
        jLabel_Relays4x400WomenValue.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_Relays4x400WomenValue.add(BorderLayout.WEST, jLabel_Relays4x400Women);
        jPanel_Relays4x400WomenValue.add(BorderLayout.EAST, jLabel_Relays4x400WomenValue);
        jPanel_RelaysDown.add(BorderLayout.CENTER, jPanel_Relays4x400WomenValue);
        
        jPanel_Relays.add(BorderLayout.NORTH, jPanel_RelaysTop);
        jPanel_Relays.add(BorderLayout.SOUTH, jPanel_RelaysDown);
        
        JPanel jPanel_TotalStatistieken = new JPanel(new BorderLayout());
        
        jLabel_SprintersMen = new JLabel();
        jLabel_SprintersMenTotal = new JLabel();
        jLabel_MiddleDistanceRunnersMen = new JLabel();
        jLabel_MiddleDistanceRunnersMenTotal = new JLabel();
        jLabel_LongDistanceRunnersMen = new JLabel();
        jLabel_LongDistanceRunnersMenTotal = new JLabel();
        jLabel_RaceWalkersMen = new JLabel();
        jLabel_RaceWalkersMenTotal = new JLabel();
        jLabel_JumpersMen = new JLabel();
        jLabel_JumpersMenTotal = new JLabel();
        jLabel_ThrowersMen = new JLabel();
        jLabel_ThrowersMenTotal = new JLabel();
        jPanelRight1 = new JPanel(new BorderLayout());
//        jPanelRight1.setLayout(new DialogLayout(20, 5));
        jPanelRight1.setPreferredSize(new Dimension(200, 112));
        jPanelRight1.setBorder(BorderFactory.createTitledBorder("Estaffette Man Right 2"));
        JPanel jPanel_MenTotalTop = new JPanel(new BorderLayout());
        JPanel jPanel_MenTotalDown = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersMenTotal = new JPanel(new BorderLayout());
        jLabel_SprintersMen = new JLabel();
        jLabel_SprintersMenTotal = new JLabel();
        jLabel_SprintersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersMenTotal.add(BorderLayout.WEST, jLabel_SprintersMen);
        jPanel_SprintersMenTotal.add(BorderLayout.EAST, jLabel_SprintersMenTotal);
        jPanel_MenTotalTop.add(BorderLayout.NORTH, jPanel_SprintersMenTotal);
        JPanel jPanel_MiddleDistanceRunnersMen = new JPanel(new BorderLayout());
        jLabel_MiddleDistanceRunnersMen = new JLabel();
        jLabel_MiddleDistanceRunnersMenTotal = new JLabel();
        jLabel_MiddleDistanceRunnersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistanceRunnersMen.add(BorderLayout.WEST, jLabel_MiddleDistanceRunnersMen);
        jPanel_MiddleDistanceRunnersMen.add(BorderLayout.EAST, jLabel_MiddleDistanceRunnersMenTotal);
        jPanel_MenTotalTop.add(BorderLayout.CENTER, jPanel_MiddleDistanceRunnersMen);
        JPanel jPanel_LongDistanceRunnersMen = new JPanel(new BorderLayout());
        jLabel_LongDistanceRunnersMen = new JLabel();
        jLabel_LongDistanceRunnersMenTotal = new JLabel();
        jLabel_LongDistanceRunnersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistanceRunnersMen.add(BorderLayout.WEST, jLabel_LongDistanceRunnersMen);
        jPanel_LongDistanceRunnersMen.add(BorderLayout.EAST, jLabel_LongDistanceRunnersMenTotal);
        jPanel_MenTotalTop.add(BorderLayout.SOUTH, jPanel_LongDistanceRunnersMen);
        JPanel jPanel_RaceWalkersMenTotal = new JPanel(new BorderLayout());
        jLabel_RaceWalkersMen = new JLabel();
        jLabel_RaceWalkersMenTotal = new JLabel();
        jLabel_RaceWalkersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_RaceWalkersMenTotal.add(BorderLayout.WEST, jLabel_RaceWalkersMen);
        jPanel_RaceWalkersMenTotal.add(BorderLayout.EAST, jLabel_RaceWalkersMenTotal);
        jPanel_MenTotalDown.add(BorderLayout.NORTH, jPanel_RaceWalkersMenTotal);
        JPanel jPanel_JumpersMenTotal = new JPanel(new BorderLayout());
        jLabel_JumpersMen = new JLabel();
        jLabel_JumpersMenTotal = new JLabel();
        jLabel_JumpersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_JumpersMenTotal.add(BorderLayout.WEST, jLabel_JumpersMen);
        jPanel_JumpersMenTotal.add(BorderLayout.EAST, jLabel_JumpersMenTotal);
        jPanel_MenTotalDown.add(BorderLayout.CENTER, jPanel_JumpersMenTotal);
        JPanel jPanel_ThrowersMenTotal = new JPanel(new BorderLayout());
        jLabel_ThrowersMen = new JLabel();
        jLabel_ThrowersMenTotal = new JLabel();
        jLabel_ThrowersMenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_ThrowersMenTotal.add(BorderLayout.WEST, jLabel_ThrowersMen);
        jPanel_ThrowersMenTotal.add(BorderLayout.EAST, jLabel_ThrowersMenTotal);
        jPanel_MenTotalDown.add(BorderLayout.SOUTH, jPanel_ThrowersMenTotal);
        
        jPanelRight1.add(BorderLayout.NORTH, jPanel_MenTotalTop);
        jPanelRight1.add(BorderLayout.SOUTH, jPanel_MenTotalDown);

        jPanelRight2 = new JPanel(new BorderLayout());
//        jPanelRight2.setLayout(new DialogLayout(20, 5));
        jPanelRight2.setPreferredSize(new Dimension(200, 112));
        jPanelRight2.setBorder(BorderFactory.createTitledBorder("Estaffette Vrouw Right 2"));
        JPanel jPanel_WomenTotalTop = new JPanel(new BorderLayout());
        JPanel jPanel_WomenTotalDown = new JPanel(new BorderLayout());
        JPanel jPanel_SprintersWomenTotal = new JPanel(new BorderLayout());
        jLabel_SprintersWomen = new JLabel();
        jLabel_SprintersWomenTotal = new JLabel();
        jLabel_SprintersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_SprintersWomenTotal.add(BorderLayout.WEST, jLabel_SprintersWomen);
        jPanel_SprintersWomenTotal.add(BorderLayout.EAST, jLabel_SprintersWomenTotal);
        jPanel_WomenTotalTop.add(BorderLayout.NORTH, jPanel_SprintersWomenTotal);
        JPanel jPanel_MiddleDistanceRunnersWomen = new JPanel(new BorderLayout());
        jLabel_MiddleDistanceRunnersWomen = new JLabel();
        jLabel_MiddleDistanceRunnersWomenTotal = new JLabel();
        jLabel_MiddleDistanceRunnersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_MiddleDistanceRunnersWomen.add(BorderLayout.WEST, jLabel_MiddleDistanceRunnersWomen);
        jPanel_MiddleDistanceRunnersWomen.add(BorderLayout.EAST, jLabel_MiddleDistanceRunnersWomenTotal);
        jPanel_WomenTotalTop.add(BorderLayout.CENTER, jPanel_MiddleDistanceRunnersWomen);
        JPanel jPanel_LongDistanceRunnersWomen = new JPanel(new BorderLayout());
        jLabel_LongDistanceRunnersWomen = new JLabel();
        jLabel_LongDistanceRunnersWomenTotal = new JLabel();
        jLabel_LongDistanceRunnersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_LongDistanceRunnersWomen.add(BorderLayout.WEST, jLabel_LongDistanceRunnersWomen);
        jPanel_LongDistanceRunnersWomen.add(BorderLayout.EAST, jLabel_LongDistanceRunnersWomenTotal);
        jPanel_WomenTotalTop.add(BorderLayout.SOUTH, jPanel_LongDistanceRunnersWomen);
        JPanel jPanel_RaceWalkersWomenTotal = new JPanel(new BorderLayout());
        jLabel_RaceWalkersWomen = new JLabel();
        jLabel_RaceWalkersWomenTotal = new JLabel();
        jLabel_RaceWalkersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_RaceWalkersWomenTotal.add(BorderLayout.WEST, jLabel_RaceWalkersWomen);
        jPanel_RaceWalkersWomenTotal.add(BorderLayout.EAST, jLabel_RaceWalkersWomenTotal);
        jPanel_WomenTotalDown.add(BorderLayout.NORTH, jPanel_RaceWalkersWomenTotal);
        JPanel jPanel_JumpersWomenTotal = new JPanel(new BorderLayout());
        jLabel_JumpersWomen = new JLabel();
        jLabel_JumpersWomenTotal = new JLabel();
        jLabel_JumpersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_JumpersWomenTotal.add(BorderLayout.WEST, jLabel_JumpersWomen);
        jPanel_JumpersWomenTotal.add(BorderLayout.EAST, jLabel_JumpersWomenTotal);
        jPanel_WomenTotalDown.add(BorderLayout.CENTER, jPanel_JumpersWomenTotal);
        JPanel jPanel_ThrowersWomenTotal = new JPanel(new BorderLayout());
        jLabel_ThrowersWomen = new JLabel();
        jLabel_ThrowersWomenTotal = new JLabel();
        jLabel_ThrowersWomenTotal.setHorizontalAlignment(JLabel.RIGHT);
        jPanel_ThrowersWomenTotal.add(BorderLayout.WEST, jLabel_ThrowersWomen);
        jPanel_ThrowersWomenTotal.add(BorderLayout.EAST, jLabel_ThrowersWomenTotal);
        jPanel_WomenTotalDown.add(BorderLayout.SOUTH, jPanel_ThrowersWomenTotal);
        
        jPanelRight2.add(BorderLayout.NORTH, jPanel_WomenTotalTop);
        jPanelRight2.add(BorderLayout.SOUTH, jPanel_WomenTotalDown);

       
        jLabel_TotalMen = new JLabel();
        jLabel_TotalMenValue = new JLabel();
        jLabel_TotalWomen = new JLabel();
        jLabel_TotalWomenValue = new JLabel();
        jLabel_Total = new JLabel();
        jLabel_TotalValue = new JLabel();
            
         jPanelRight3 = new JPanel(new GridLayout(0,2,5,0));
    //   jPanelRight3.setLayout(new DialogLayout(20, 5));
        jPanelRight3.setPreferredSize(new Dimension(200, 80));
        jPanelRight3.setBorder(BorderFactory.createTitledBorder("Statistieken 2 Right 3"));



        jPanelRight3.add(jLabel_TotalMen);
        jPanelRight3.add(jLabel_TotalMenValue);
        jPanelRight3.add(jLabel_TotalWomen);
        jPanelRight3.add(jLabel_TotalWomenValue);
        jPanelRight3.add(jLabel_Total);
        jPanelRight3.add(jLabel_TotalValue);

        jPanel_TotalStatistieken.add(BorderLayout.NORTH, jPanelRight1);
        jPanel_TotalStatistieken.add(BorderLayout.CENTER, jPanelRight2);
        jPanel_TotalStatistieken.add(BorderLayout.SOUTH, jPanelRight3);

        //Create Center Panel
        JPanel p5 = new JPanel(new BorderLayout());
        p5.add(BorderLayout.NORTH, jPanel_Relays);
        p5.add(BorderLayout.SOUTH, jPanel_TotalStatistieken);
        //p1.setSize(1005, 75);

        JPanel p6 = new JPanel(new BorderLayout());
        p6.add(BorderLayout.WEST, p2);
        p6.add(BorderLayout.CENTER, p3);
        p6.add(BorderLayout.EAST, p4);

        //  p1.add(jScrollPane1, BorderLayout.SOUTH);

        //Add panels to GUI
        this.getContentPane().add(BorderLayout.NORTH, jMenuBar1);
        this.getContentPane().add(BorderLayout.WEST, p1);
        this.getContentPane().add(BorderLayout.CENTER, p6);
        this.getContentPane().add(BorderLayout.EAST, p5);
        // this.getContentPane().add(BorderLayout.SOUTH, jScrollPane1);
        this.setVisible(true);
    }
}
